<template> 
    <div class="data-block">
        <el-row>
            <!-- <el-col :span="12">
                <el-icon><Aim /></el-icon>
            </el-col> -->
            <el-col :span="24" >
                <div class="data-name">{{ data_name }}</div>
            </el-col>
        </el-row>


        <div class="data-value">{{ data_value }}</div>
    </div>
</template>

<script setup lang="ts">
import {Check,Aim} from '@element-plus/icons-vue'

const props = defineProps({
    data_name: {
        type: String,
        default: '数据名称',
        required: true
    },
    data_value: {
        type: Number,
        default: 0,
        required: true
    }
});

</script>

<style scoped>
.data-block{
    width : 100%;
    height: 282px;
    border: 1px solid #000000;
    background-color: #81c5df;
  display: flex; /* 使用Flexbox布局 */
  flex-direction: column; /* 列方向排列子元素 */
  justify-content: center; /* 垂直居中 */
  align-items: center; /* 水平居中 */
    
}
.data-name {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    align-self: center;
    align-items: center;
}
.data-value {
    align-items: center;
    align-self: center;
    font-size: 16px;
    color: #000;
    margin: 10px;
}
</style>